home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-04-15 | 5.0 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Fri Apr 15 10:54:11 1994, modified Fri Apr 15 10:54:11 1994, creator 'MPS ', type ASCII, 4442 bytes "Application.h" , at 0x11da 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 41 70 70 6c 69 63 | 61 74 69 6f 6e 2e 68 00 |..Applic|ation.h.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 11 5a 00 | 00 01 ac a9 d4 5b 13 a9 |......Z.|.....[..|
|00000060| d4 5b 13 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.[......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3d fc 00 00 |........|....=...|
|00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 41 70 70 6c 69 |/*..File|:..Appli|
|00000090| 63 61 74 69 6f 6e 2e 68 | 0d 0d 09 43 6f 6e 74 61 |cation.h|...Conta|
|000000a0| 69 6e 73 3a 09 54 41 70 | 70 6c 69 63 61 74 69 6f |ins:.TAp|plicatio|
|000000b0| 6e 20 69 6e 74 65 72 66 | 61 63 65 0d 0d 09 54 68 |n interf|ace...Th|
|000000c0| 69 73 20 6d 6f 64 75 6c | 65 20 64 65 72 69 76 65 |is modul|e derive|
|000000d0| 64 20 66 72 6f 6d 20 74 | 68 65 20 41 70 70 6c 65 |d from t|he Apple|
|000000e0| 20 53 68 61 72 65 64 20 | 4c 69 62 72 61 72 79 20 | Shared |Library |
|000000f0| 4d 61 6e 61 67 65 72 0d | 09 73 61 6d 70 6c 65 20 |Manager.|.sample |
|00000100| 73 6f 75 72 63 65 20 63 | 6f 64 65 20 73 75 70 70 |source c|ode supp|
|00000110| 6c 69 65 64 20 77 69 74 | 68 20 41 53 4c 4d 20 31 |lied wit|h ASLM 1|
|00000120| 2e 31 20 28 6e 6f 74 65 | 20 74 68 61 74 20 41 53 |.1 (note| that AS|
|00000130| 4c 4d 0d 09 69 73 20 4e | 4f 54 20 72 65 71 75 69 |LM..is N|OT requi|
|00000140| 72 65 64 20 66 6f 72 2c | 20 6f 72 20 75 73 65 64 |red for,| or used|
|00000150| 20 69 6e 2c 20 74 68 69 | 73 20 70 72 6f 6a 65 63 | in, thi|s projec|
|00000160| 74 29 2e 0d 0d 09 44 65 | 76 65 6c 6f 70 65 64 20 |t)....De|veloped |
|00000170| 62 79 3a 0d 0d 09 50 61 | 75 6c 20 47 20 53 6d 69 |by:...Pa|ul G Smi|
|00000180| 74 68 20 28 63 6f 6d 6d | 73 74 61 6c 6b 20 68 71 |th (comm|stalk hq|
|00000190| 20 26 20 46 75 6c 6c 20 | 4d 6f 6f 6e 20 53 6f 66 | & Full |Moon Sof|
|000001a0| 74 77 61 72 65 2c 20 49 | 6e 63 29 0d 0d 09 79 6f |tware, I|nc)...yo|
|000001b0| 75 20 63 61 6e 20 6c 65 | 61 76 65 20 6d 65 73 73 |u can le|ave mess|
|000001c0| 61 67 65 73 20 61 74 20 | 28 55 4b 29 3a 20 30 37 |ages at |(UK): 07|
|000001d0| 32 37 20 38 34 34 32 33 | 32 3b 20 28 55 53 29 3a |27 84423|2; (US):|
|000001e0| 20 34 30 38 20 32 35 33 | 20 37 31 39 39 0d 09 42 | 408 253| 7199..B|
|000001f0| 55 54 20 49 20 70 72 65 | 66 65 72 20 74 6f 20 62 |UT I pre|fer to b|
|00000200| 65 20 63 6f 6e 74 61 63 | 74 65 64 20 62 79 20 65 |e contac|ted by e|
|00000210| 2d 6d 61 69 6c 0d 09 41 | 70 70 6c 65 4c 69 6e 6b |-mail..A|ppleLink|
|00000220| 3a 20 09 43 4f 4d 4d 53 | 54 41 4c 4b 2e 48 51 0d |: .COMMS|TALK.HQ.|
|00000230| 09 49 6e 74 65 72 6e 65 | 74 3a 20 09 43 4f 4d 4d |.Interne|t: .COMM|
|00000240| 53 54 41 4c 4b 2e 48 51 | 40 61 70 70 6c 65 6c 69 |STALK.HQ|@appleli|
|00000250| 6e 6b 2e 61 70 70 6c 65 | 2e 63 6f 6d 0d 0d 09 22 |nk.apple|.com..."|
|00000260| 53 69 6d 70 6c 69 46 61 | 63 65 32 22 20 53 61 6d |SimpliFa|ce2" Sam|
|00000270| 70 6c 65 20 63 6f 64 65 | 20 74 6f 20 61 63 63 6f |ple code| to acco|
|00000280| 6d 70 61 6e 79 20 64 65 | 76 65 6c 6f 70 20 61 72 |mpany de|velop ar|
|00000290| 74 69 63 6c 65 0d 09 6f | 6e 20 74 65 63 68 6e 69 |ticle..o|n techni|
|000002a0| 71 75 65 73 20 66 6f 72 | 20 63 6f 6e 74 72 6f 6c |ques for| control|
|000002b0| 6c 69 6e 67 20 73 63 72 | 69 70 74 20 69 6e 68 65 |ling scr|ipt inhe|
|000002c0| 72 69 74 61 6e 63 65 2e | 0d 09 0d 09 0d 0d 0d 2a |ritance.|.......*|
|000002d0| 2f 0d 0d 23 69 66 6e 64 | 65 66 20 5f 5f 41 50 50 |/..#ifnd|ef __APP|
|000002e0| 4c 49 43 41 54 49 4f 4e | 5f 5f 0d 23 64 65 66 69 |LICATION|__.#defi|
|000002f0| 6e 65 20 5f 5f 41 50 50 | 4c 49 43 41 54 49 4f 4e |ne __APP|LICATION|
|00000300| 5f 5f 0d 0d 23 69 66 6e | 64 65 66 20 5f 5f 44 45 |__..#ifn|def __DE|
|00000310| 53 4b 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 3c 44 |SK__.#in|clude <D|
|00000320| 65 73 6b 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 23 |esk.h>.#|endif..#|
|00000330| 69 66 6e 64 65 66 20 5f | 5f 4f 53 55 54 49 4c 53 |ifndef _|_OSUTILS|
|00000340| 5f 5f 0d 23 69 6e 63 6c | 75 64 65 20 3c 4f 53 55 |__.#incl|ude <OSU|
|00000350| 74 69 6c 73 2e 68 3e 0d | 23 65 6e 64 69 66 0d 0d |tils.h>.|#endif..|
|00000360| 23 69 66 6e 64 65 66 20 | 5f 5f 41 50 50 4c 45 45 |#ifndef |__APPLEE|
|00000370| 56 45 4e 54 53 5f 5f 0d | 23 69 6e 63 6c 75 64 65 |VENTS__.|#include|
|00000380| 20 3c 41 70 70 6c 65 45 | 76 65 6e 74 73 2e 68 3e | <AppleE|vents.h>|
|00000390| 0d 23 65 6e 64 69 66 0d | 0d 23 69 66 6e 64 65 66 |.#endif.|.#ifndef|
|000003a0| 20 5f 5f 53 43 52 49 50 | 54 4f 42 4a 45 43 54 53 | __SCRIP|TOBJECTS|
|000003b0| 5f 5f 0d 23 69 6e 63 6c | 75 64 65 20 22 53 63 72 |__.#incl|ude "Scr|
|000003c0| 69 70 74 61 62 6c 65 4f | 62 6a 65 63 74 73 2e 68 |iptableO|bjects.h|
|000003d0| 22 0d 23 65 6e 64 69 66 | 0d 0d 0d 2f 2a 20 74 68 |".#endif|.../* th|
|000003e0| 69 73 20 69 73 20 61 20 | 74 79 70 65 20 64 65 63 |is is a |type dec|
|000003f0| 6c 61 72 74 69 6f 6e 20 | 66 6f 72 20 74 68 65 20 |lartion |for the |
|00000400| 71 64 20 67 6c 6f 62 61 | 6c 20 73 6f 20 77 65 20 |qd globa|l so we |
|00000410| 63 61 6e 20 61 63 63 65 | 73 73 20 69 74 73 20 4c |can acce|ss its L|
|00000420| 61 62 65 6c 73 20 2a 2f | 0d 2f 2a 20 67 69 76 65 |abels */|./* give|
|00000430| 6e 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 71 |n a poin|ter to q|
|00000440| 64 2e 20 20 46 6f 72 20 | 73 6f 6d 65 20 72 65 61 |d. For |some rea|
|00000450| 73 6f 6e 20 71 75 69 63 | 6b 64 72 61 77 20 64 6f |son quic|kdraw do|
|00000460| 65 73 6e 27 74 20 64 65 | 66 69 6e 65 20 74 68 69 |esn't de|fine thi|
|00000470| 73 20 74 79 70 65 2e 20 | 2a 2f 0d 73 74 72 75 63 |s type. |*/.struc|
|00000480| 74 20 71 64 52 65 63 20 | 7b 0d 09 63 68 61 72 20 |t qdRec |{..char |
|00000490| 70 72 69 76 61 74 65 73 | 5b 37 36 5d 3b 0d 09 6c |privates|[76];..l|
|000004a0| 6f 6e 67 20 72 61 6e 64 | 53 65 65 64 3b 0d 09 42 |ong rand|Seed;..B|
|000004b0| 69 74 4d 61 70 20 73 63 | 72 65 65 6e 42 69 74 73 |itMap sc|reenBits|
|000004c0| 3b 0d 09 43 75 72 73 6f | 72 20 61 72 72 6f 77 3b |;..Curso|r arrow;|
|000004d0| 0d 09 50 61 74 74 65 72 | 6e 20 64 6b 47 72 61 79 |..Patter|n dkGray|
|000004e0| 3b 0d 09 50 61 74 74 65 | 72 6e 20 6c 74 47 72 61 |;..Patte|rn ltGra|
|000004f0| 79 3b 0d 09 50 61 74 74 | 65 72 6e 20 67 72 61 79 |y;..Patt|ern gray|
|00000500| 3b 0d 09 50 61 74 74 65 | 72 6e 20 62 6c 61 63 6b |;..Patte|rn black|
|00000510| 3b 0d 09 50 61 74 74 65 | 72 6e 20 77 68 69 74 65 |;..Patte|rn white|
|00000520| 3b 0d 09 47 72 61 66 50 | 74 72 20 74 68 65 50 6f |;..GrafP|tr thePo|
|00000530| 72 74 3b 0d 7d 3b 0d 0d | 2f 2a 0d 09 54 41 70 70 |rt;.};..|/*..TApp|
|00000540| 6c 69 63 61 74 69 6f 6e | 3a 0d 0d 09 54 68 69 73 |lication|:...This|
|00000550| 20 69 73 20 6f 75 72 20 | 63 6c 61 73 73 20 77 68 | is our |class wh|
|00000560| 69 63 68 20 69 6d 70 6c | 65 6d 65 6e 74 73 20 61 |ich impl|ements a|
|00000570| 20 62 61 73 69 63 20 4d | 61 63 69 6e 74 6f 73 68 | basic M|acintosh|
|00000580| 20 73 74 79 6c 65 20 70 | 72 6f 67 72 61 6d 2c 0d | style p|rogram,.|
|00000590| 09 69 6e 63 6c 75 64 69 | 6e 67 20 61 20 4d 75 6c |.includi|ng a Mul|
|000005a0| 74 69 46 69 6e 64 65 72 | 2d 61 77 61 72 65 20 65 |tiFinder|-aware e|
|000005b0| 76 65 6e 74 20 6c 6f 6f | 70 2e 20 0d 2a 2f 0d 0d |vent loo|p. .*/..|
|000005c0| 63 6c 61 73 73 20 54 41 | 70 70 6c 69 63 61 74 69 |class TA|pplicati|
|000005d0| 6f 6e 20 3a 20 70 75 62 | 6c 69 63 20 54 53 63 72 |on : pub|lic TScr|
|000005e0| 69 70 74 61 62 6c 65 4f | 62 6a 65 63 74 0d 7b 0d |iptableO|bject.{.|
|000005f0| 70 75 62 6c 69 63 3a 0d | 09 2f 2f 20 4f 75 72 20 |public:.|.// Our |
|00000600| 63 6f 6e 73 74 72 75 63 | 74 6f 72 20 26 20 64 65 |construc|tor & de|
|00000610| 73 74 72 75 63 74 6f 72 | 0d 09 54 41 70 70 6c 69 |structor|..TAppli|
|00000620| 63 61 74 69 6f 6e 28 50 | 74 72 20 71 64 50 74 72 |cation(P|tr qdPtr|
|00000630| 29 3b 0d 09 54 41 70 70 | 6c 69 63 61 74 69 6f 6e |);..TApp|lication|
|00000640| 28 29 3b 0d 09 76 69 72 | 74 75 61 6c 20 7e 54 41 |();..vir|tual ~TA|
|00000650| 70 70 6c 69 63 61 74 69 | 6f 6e 28 29 3b 0d 0d 09 |pplicati|on();...|
|00000660| 2f 2f 20 43 61 6c 6c 20 | 74 68 69 73 20 72 6f 75 |// Call |this rou|
|00000670| 74 69 6e 65 20 74 6f 20 | 73 74 61 72 74 20 65 76 |tine to |start ev|
|00000680| 65 6e 74 20 6c 6f 6f 70 | 20 72 75 6e 6e 69 6e 67 |ent loop| running|
|00000690| 0d 09 76 69 72 74 75 61 | 6c 09 76 6f 69 64 20 45 |..virtua|l.void E|
|000006a0| 76 65 6e 74 4c 6f 6f 70 | 28 29 3b 0d 0d 09 2f 2f |ventLoop|();...//|
|000006b0| 20 43 61 6c 6c 20 74 68 | 69 73 20 72 6f 75 74 69 | Call th|is routi|
|000006c0| 6e 65 20 74 6f 20 72 75 | 6e 20 65 76 65 6e 74 20 |ne to ru|n event |
|000006d0| 6c 6f 6f 70 20 6f 6e 63 | 65 0d 09 76 69 72 74 75 |loop onc|e..virtu|
|000006e0| 61 6c 09 76 6f 69 64 20 | 49 6e 45 76 65 6e 74 4c |al.void |InEventL|
|000006f0| 6f 6f 70 28 29 3b 0d 0d | 70 72 6f 74 65 63 74 65 |oop();..|protecte|
|00000700| 64 3a 0d 09 2f 2f 20 52 | 65 74 75 72 6e 73 20 74 |d:..// R|eturns t|
|00000710| 6f 74 61 6c 20 73 74 61 | 63 6b 20 73 70 61 63 65 |otal sta|ck space|
|00000720| 20 72 65 71 75 69 72 65 | 64 20 69 6e 20 62 79 74 | require|d in byt|
|00000730| 65 73 2e 0d 09 2f 2f 20 | 52 65 74 75 72 6e 73 20 |es...// |Returns |
|00000740| 30 20 62 79 20 64 65 66 | 61 75 6c 74 2c 20 77 68 |0 by def|ault, wh|
|00000750| 69 63 68 20 74 65 6c 6c | 73 20 74 68 65 20 69 6e |ich tell|s the in|
|00000760| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 63 6f 64 |itializa|tion cod|
|00000770| 65 0d 09 2f 2f 20 74 6f | 20 75 73 65 20 74 68 65 |e..// to| use the|
|00000780| 20 64 65 66 61 75 6c 74 | 20 73 74 61 63 6b 20 73 | default| stack s|
|00000790| 69 7a 65 2e 0d 09 76 69 | 72 74 75 61 6c 20 6c 6f |ize...vi|rtual lo|
|000007a0| 6e 67 20 53 74 61 63 6b | 4e 65 65 64 65 64 28 29 |ng Stack|Needed()|
|000007b0| 3b 0d 09 2f 2f 20 52 65 | 74 75 72 6e 73 20 74 6f |;..// Re|turns to|
|000007c0| 74 61 6c 20 68 65 61 70 | 20 73 70 61 63 65 20 72 |tal heap| space r|
|000007d0| 65 71 75 69 72 65 64 20 | 69 6e 20 62 79 74 65 73 |equired |in bytes|
|000007e0| 2e 0d 09 2f 2f 20 52 65 | 74 75 72 6e 73 20 30 20 |...// Re|turns 0 |
|000007f0| 62 79 20 64 65 66 61 75 | 6c 74 2c 20 77 68 69 63 |by defau|lt, whic|
|00000800| 68 20 74 65 6c 6c 73 20 | 74 68 65 20 69 6e 69 74 |h tells |the init|
|00000810| 69 61 6c 69 7a 61 74 69 | 6f 6e 20 63 6f 64 65 0d |ializati|on code.|
|00000820| 09 2f 2f 20 74 6f 20 75 | 73 65 20 77 68 61 74 65 |.// to u|se whate|
|00000830| 76 65 72 20 68 65 61 70 | 20 73 69 7a 65 20 69 73 |ver heap| size is|
|00000840| 20 67 69 76 65 6e 2e 0d | 09 76 69 72 74 75 61 6c | given..|.virtual|
|00000850| 20 6c 6f 6e 67 20 48 65 | 61 70 4e 65 65 64 65 64 | long He|apNeeded|
|00000860| 28 29 3b 0d 0d 09 73 74 | 61 74 69 63 09 76 6f 69 |();...st|atic.voi|
|00000870| 64 20 41 6c 65 72 74 55 | 73 65 72 28 73 68 6f 72 |d AlertU|ser(shor|
|00000880| 74 20 65 72 72 52 65 73 | 49 44 2c 20 73 68 6f 72 |t errRes|ID, shor|
|00000890| 74 20 65 72 72 43 6f 64 | 65 29 3b 0d 09 73 74 61 |t errCod|e);..sta|
|000008a0| 74 69 63 09 76 6f 69 64 | 20 42 69 67 42 61 64 45 |tic.void| BigBadE|
|000008b0| 72 72 6f 72 28 73 68 6f | 72 74 20 65 72 72 52 65 |rror(sho|rt errRe|
|000008c0| 73 49 44 2c 20 73 68 6f | 72 74 20 65 72 72 43 6f |sID, sho|rt errCo|
|000008d0| 64 65 29 3b 0d 0d 09 2f | 2f 20 4c 6f 6f 70 20 63 |de);.../|/ Loop c|
|000008e0| 6f 6e 74 72 6f 6c 20 6d | 65 74 68 6f 64 73 20 79 |ontrol m|ethods y|
|000008f0| 6f 75 20 6d 61 79 20 6e | 65 65 64 20 74 6f 20 6f |ou may n|eed to o|
|00000900| 76 65 72 72 69 64 65 0d | 09 76 69 72 74 75 61 6c |verride.|.virtual|
|00000910| 20 76 6f 69 64 20 53 65 | 74 55 70 28 29 3b 09 09 | void Se|tUp();..|
|00000920| 09 09 09 2f 2f 20 52 75 | 6e 20 62 65 66 6f 72 65 |...// Ru|n before|
|00000930| 20 65 76 65 6e 74 20 6c | 6f 6f 70 20 73 74 61 72 | event l|oop star|
|00000940| 74 73 0d 09 76 69 72 74 | 75 61 6c 20 76 6f 69 64 |ts..virt|ual void|
|00000950| 20 43 6c 65 61 6e 55 70 | 28 29 3b 09 09 09 09 09 | CleanUp|();.....|
|00000960| 2f 2f 20 72 75 6e 20 61 | 74 20 65 6e 64 20 6f 66 |// run a|t end of|
|00000970| 20 6c 6f 6f 70 0d 09 76 | 69 72 74 75 61 6c 20 76 | loop..v|irtual v|
|00000980| 6f 69 64 20 45 78 69 74 | 4c 6f 6f 70 28 29 3b 09 |oid Exit|Loop();.|
|00000990| 09 09 09 2f 2f 20 74 6f | 20 65 6e 64 20 6c 6f 6f |...// to| end loo|
|000009a0| 70 2c 20 63 61 6c 6c 20 | 74 68 69 73 20 72 6f 75 |p, call |this rou|
|000009b0| 74 69 6e 65 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |tine..vi|rtual vo|
|000009c0| 69 64 20 44 6f 49 64 6c | 65 28 29 3b 09 09 09 09 |id DoIdl|e();....|
|000009d0| 09 2f 2f 20 69 64 6c 65 | 20 74 69 6d 65 20 68 61 |.// idle| time ha|
|000009e0| 6e 64 6c 65 72 20 28 62 | 6c 69 6e 6b 20 63 61 72 |ndler (b|link car|
|000009f0| 65 74 2c 20 62 61 63 6b | 67 72 6f 75 6e 64 20 74 |et, back|ground t|
|00000a00| 61 73 6b 73 29 0d 09 76 | 69 72 74 75 61 6c 20 76 |asks)..v|irtual v|
|00000a10| 6f 69 64 20 41 64 6a 75 | 73 74 4d 65 6e 75 73 28 |oid Adju|stMenus(|
|00000a20| 29 3b 09 09 09 09 2f 2f | 20 6d 65 6e 75 20 75 70 |);....//| menu up|
|00000a30| 64 61 74 65 72 20 72 6f | 75 74 69 6e 65 0d 09 0d |dater ro|utine...|
|00000a40| 09 76 69 72 74 75 61 6c | 20 42 6f 6f 6c 65 61 6e |.virtual| Boolean|
|00000a50| 20 09 48 61 6e 64 6c 65 | 45 76 65 6e 74 20 28 45 | .Handle|Event (E|
|00000a60| 76 65 6e 74 52 65 63 6f | 72 64 26 20 74 68 65 45 |ventReco|rd& theE|
|00000a70| 76 65 6e 74 2c 20 42 6f | 6f 6c 65 61 6e 26 20 70 |vent, Bo|olean& p|
|00000a80| 61 73 73 29 3b 0d 09 2f | 2f 20 72 65 74 75 72 6e |ass);../|/ return|
|00000a90| 73 20 74 72 75 65 20 69 | 66 20 65 76 65 6e 74 20 |s true i|f event |
|00000aa0| 77 61 73 20 68 61 6e 64 | 6c 65 64 0d 0d 09 2f 2f |was hand|led...//|
|00000ab0| 20 65 76 65 6e 74 20 68 | 61 6e 64 6c 65 72 73 20 | event h|andlers |
|00000ac0| 79 6f 75 20 73 68 6f 75 | 6c 64 6e 27 74 20 6e 65 |you shou|ldn't ne|
|00000ad0| 65 64 20 74 6f 20 6f 76 | 65 72 72 69 64 65 20 69 |ed to ov|erride i|
|00000ae0| 6e 20 61 20 74 79 70 69 | 63 61 6c 20 61 70 70 6c |n a typi|cal appl|
|00000af0| 69 63 61 74 69 6f 6e 0d | 09 76 69 72 74 75 61 6c |ication.|.virtual|
|00000b00| 20 76 6f 69 64 20 44 6f | 4b 65 79 44 6f 77 6e 28 | void Do|KeyDown(|
|00000b10| 29 3b 09 09 09 09 2f 2f | 20 61 6c 73 6f 20 63 61 |);....//| also ca|
|00000b20| 6c 6c 65 64 20 66 6f 72 | 20 61 75 74 6f 6b 65 79 |lled for| autokey|
|00000b30| 20 65 76 65 6e 74 73 0d | 09 76 69 72 74 75 61 6c | events.|.virtual|
|00000b40| 20 76 6f 69 64 20 44 6f | 41 63 74 69 76 61 74 65 | void Do|Activate|
|00000b50| 45 76 74 28 29 3b 09 09 | 09 2f 2f 20 68 61 6e 64 |Evt();..|.// hand|
|00000b60| 6c 65 73 20 73 65 74 75 | 70 2c 20 61 6e 64 20 63 |les setu|p, and c|
|00000b70| 61 6c 6c 73 20 44 6f 41 | 63 74 69 76 61 74 65 20 |alls DoA|ctivate |
|00000b80| 28 62 65 6c 6f 77 29 0d | 09 76 69 72 74 75 61 6c |(below).|.virtual|
|00000b90| 20 76 6f 69 64 20 44 6f | 55 70 64 61 74 65 45 76 | void Do|UpdateEv|
|00000ba0| 74 28 29 3b 09 09 09 09 | 2f 2f 20 68 61 6e 64 6c |t();....|// handl|
|00000bb0| 65 73 20 73 65 74 75 70 | 2c 20 61 6e 64 20 63 61 |es setup|, and ca|
|00000bc0| 6c 6c 73 20 44 6f 55 70 | 64 61 74 65 20 28 62 65 |lls DoUp|date (be|
|00000bd0| 6c 6f 77 29 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |low)..vi|rtual vo|
|00000be0| 69 64 20 44 6f 48 69 67 | 68 4c 65 76 65 6c 45 76 |id DoHig|hLevelEv|
|00000bf0| 65 6e 74 28 29 3b 09 09 | 2f 2f 20 68 61 6e 64 6c |ent();..|// handl|
|00000c00| 65 73 20 41 70 70 6c 65 | 20 45 76 65 6e 74 73 0d |es Apple| Events.|
|00000c10| 09 76 69 72 74 75 61 6c | 20 76 6f 69 64 20 44 6f |.virtual| void Do|
|00000c20| 4f 53 45 76 65 6e 74 28 | 29 3b 09 09 09 09 2f 2f |OSEvent(|);....//|
|00000c30| 20 43 61 6c 6c 73 20 44 | 6f 53 75 73 70 65 6e 64 | Calls D|oSuspend|
|00000c40| 2c 20 44 6f 52 65 73 75 | 6d 65 20 61 6e 64 20 44 |, DoResu|me and D|
|00000c50| 6f 49 64 6c 65 20 61 73 | 20 61 70 72 6f 70 6f 73 |oIdle as| apropos|
|00000c60| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 20 44 |..virtua|l void D|
|00000c70| 6f 4d 6f 75 73 65 44 6f | 77 6e 28 29 3b 09 09 09 |oMouseDo|wn();...|
|00000c80| 09 2f 2f 20 43 61 6c 6c | 73 20 44 6f 43 6f 6e 74 |.// Call|s DoCont|
|00000c90| 65 6e 74 2c 20 44 6f 47 | 72 6f 77 2c 20 44 6f 5a |ent, DoG|row, DoZ|
|00000ca0| 6f 6f 6d 2c 20 65 74 63 | 0d 09 76 69 72 74 75 61 |oom, etc|..virtua|
|00000cb0| 6c 20 76 6f 69 64 20 44 | 6f 4d 6f 75 73 65 49 6e |l void D|oMouseIn|
|00000cc0| 53 79 73 57 69 6e 64 6f | 77 28 29 3b 0d 09 76 69 |SysWindo|w();..vi|
|00000cd0| 72 74 75 61 6c 20 76 6f | 69 64 20 44 6f 44 72 61 |rtual vo|id DoDra|
|00000ce0| 67 28 29 3b 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |g();..vi|rtual vo|
|00000cf0| 69 64 20 44 6f 47 6f 41 | 77 61 79 28 29 3b 09 09 |id DoGoA|way();..|
|00000d00| 09 09 2f 2f 20 68 61 6e | 64 6c 65 73 20 73 65 74 |..// han|dles set|
|00000d10| 75 70 2c 20 63 61 6c 6c | 73 20 54 44 6f 63 75 6d |up, call|s TDocum|
|00000d20| 65 6e 74 3a 3a 44 6f 43 | 6c 6f 73 65 0d 0d 09 2f |ent::DoC|lose.../|
|00000d30| 2f 20 63 61 6c 6c 65 64 | 20 62 79 20 45 76 65 6e |/ called| by Even|
|00000d40| 74 4c 6f 6f 70 20 61 6e | 64 20 69 74 73 20 68 61 |tLoop an|d its ha|
|00000d50| 6e 64 6c 65 72 73 3a 0d | 09 76 69 72 74 75 61 6c |ndlers:.|.virtual|
|00000d60| 20 76 6f 69 64 20 41 64 | 6a 75 73 74 43 75 72 73 | void Ad|justCurs|
|00000d70| 6f 72 28 29 3b 09 09 2f | 2f 20 63 75 72 73 6f 72 |or();../|/ cursor|
|00000d80| 20 61 64 6a 75 73 74 20 | 72 6f 75 74 69 6e 65 2c | adjust |routine,|
|00000d90| 20 73 68 6f 75 6c 64 20 | 73 65 74 75 70 20 6d 6f | should |setup mo|
|00000da0| 75 73 65 52 67 6e 0d 09 | 76 69 72 74 75 61 6c 20 |useRgn..|virtual |
|00000db0| 76 6f 69 64 20 44 6f 4d | 65 6e 75 43 6f 6d 6d 61 |void DoM|enuComma|
|00000dc0| 6e 64 28 73 68 6f 72 74 | 20 6d 65 6e 75 49 44 2c |nd(short| menuID,|
|00000dd0| 20 73 68 6f 72 74 20 6d | 65 6e 75 49 74 65 6d 29 | short m|enuItem)|
|00000de0| 3b 0d 09 2f 2f 20 63 61 | 6c 6c 65 64 20 62 79 20 |;..// ca|lled by |
|00000df0| 4f 53 45 76 65 6e 74 20 | 28 6a 75 73 74 20 63 61 |OSEvent |(just ca|
|00000e00| 6c 6c 73 20 44 6f 41 63 | 74 69 76 61 74 65 20 62 |lls DoAc|tivate b|
|00000e10| 79 20 64 65 66 61 75 6c | 74 2c 20 73 6f 20 6e 6f |y defaul|t, so no|
|00000e20| 20 63 6c 69 70 20 63 6f | 6e 76 65 72 73 69 6f 6e | clip co|nversion|
|00000e30| 0d 09 2f 2f 20 69 73 20 | 64 6f 6e 65 29 2e 20 49 |..// is |done). I|
|00000e40| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 63 6f |f you wa|nt to co|
|00000e50| 6e 76 65 72 74 20 63 6c | 69 70 62 6f 61 72 64 2c |nvert cl|ipboard,|
|00000e60| 20 6f 76 65 72 72 69 64 | 65 20 74 68 65 73 65 20 | overrid|e these |
|00000e70| 72 6f 75 74 69 6e 65 73 | 0d 09 76 69 72 74 75 61 |routines|..virtua|
|00000e80| 6c 20 76 6f 69 64 20 44 | 6f 53 75 73 70 65 6e 64 |l void D|oSuspend|
|00000e90| 28 42 6f 6f 6c 65 61 6e | 20 64 6f 43 6c 69 70 43 |(Boolean| doClipC|
|00000ea0| 6f 6e 76 65 72 74 29 3b | 0d 09 76 69 72 74 75 61 |onvert);|..virtua|
|00000eb0| 6c 20 76 6f 69 64 20 44 | 6f 52 65 73 75 6d 65 28 |l void D|oResume(|
|00000ec0| 42 6f 6f 6c 65 61 6e 20 | 64 6f 43 6c 69 70 43 6f |Boolean |doClipCo|
|00000ed0| 6e 76 65 72 74 29 3b 0d | 09 0d 09 2f 2f 20 49 66 |nvert);.|...// If|
|00000ee0| 20 79 6f 75 20 68 61 76 | 65 20 61 6e 20 61 70 70 | you hav|e an app|
|00000ef0| 20 74 68 61 74 20 6e 65 | 65 64 73 20 74 6f 20 6b | that ne|eds to k|
|00000f00| 6e 6f 77 20 61 62 6f 75 | 74 20 74 68 65 73 65 2c |now abou|t these,|
|00000f10| 20 6f 76 65 72 72 69 64 | 65 20 74 68 65 6d 0d 09 | overrid|e them..|
|00000f20| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 20 44 6f 4d |virtual |void DoM|
|00000f30| 6f 75 73 65 55 70 28 29 | 3b 0d 09 76 69 72 74 75 |ouseUp()|;..virtu|
|00000f40| 61 6c 20 76 6f 69 64 20 | 44 6f 44 69 73 6b 45 76 |al void |DoDiskEv|
|00000f50| 74 28 29 3b 0d 0d 09 2f | 2f 20 55 74 69 6c 69 74 |t();.../|/ Utilit|
|00000f60| 79 20 72 6f 75 74 69 6e | 65 73 20 79 6f 75 20 6e |y routin|es you n|
|00000f70| 65 65 64 20 74 6f 20 70 | 72 6f 76 69 64 65 20 74 |eed to p|rovide t|
|00000f80| 6f 20 64 6f 20 4d 75 6c | 74 69 46 69 6e 64 65 72 |o do Mul|tiFinder|
|00000f90| 20 73 74 75 66 66 0d 09 | 76 69 72 74 75 61 6c 20 | stuff..|virtual |
|00000fa0| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 20 53 6c |unsigned| long Sl|
|00000fb0| 65 65 70 56 61 6c 28 29 | 3b 09 09 2f 2f 20 68 6f |eepVal()|;..// ho|
|00000fc0| 77 20 6c 6f 6e 67 20 74 | 6f 20 73 6c 65 65 70 20 |w long t|o sleep |
|00000fd0| 69 6e 20 57 61 69 74 4e | 65 78 74 45 76 65 6e 74 |in WaitN|extEvent|
|00000fe0| 0d 0d 70 72 69 76 61 74 | 65 3a 0d 09 76 69 72 74 |..privat|e:..virt|
|00000ff0| 75 61 6c 20 76 6f 69 64 | 09 09 49 6e 69 74 41 70 |ual void|..InitAp|
|00001000| 70 6c 69 63 61 74 69 6f | 6e 28 50 74 72 20 71 64 |plicatio|n(Ptr qd|
|00001010| 50 74 72 29 3b 0d 0d 70 | 72 6f 74 65 63 74 65 64 |Ptr);..p|rotected|
|00001020| 3a 0d 09 2f 2f 20 75 73 | 65 66 75 6c 20 76 61 72 |:..// us|eful var|
|00001030| 69 61 62 6c 65 73 0d 09 | 42 6f 6f 6c 65 61 6e 09 |iables..|Boolean.|
|00001040| 09 09 66 44 6f 6e 65 3b | 09 09 09 09 09 2f 2f 20 |..fDone;|.....// |
|00001050| 73 65 74 20 74 6f 20 74 | 72 75 65 20 77 68 65 6e |set to t|rue when|
|00001060| 20 77 65 20 61 72 65 20 | 72 65 61 64 79 20 74 6f | we are |ready to|
|00001070| 20 71 75 69 74 0d 09 45 | 76 65 6e 74 52 65 63 6f | quit..E|ventReco|
|00001080| 72 64 09 09 66 54 68 65 | 45 76 65 6e 74 3b 09 09 |rd..fThe|Event;..|
|00001090| 09 09 2f 2f 20 6f 75 72 | 20 65 76 65 6e 74 20 72 |..// our| event r|
|000010a0| 65 63 6f 72 64 0d 09 57 | 69 6e 64 6f 77 50 74 72 |ecord..W|indowPtr|
|000010b0| 09 09 66 57 68 69 63 68 | 57 69 6e 64 6f 77 3b 09 |..fWhich|Window;.|
|000010c0| 09 09 2f 2f 20 63 75 72 | 72 65 6e 74 6c 79 20 61 |..// cur|rently a|
|000010d0| 63 74 69 76 65 20 77 69 | 6e 64 6f 77 0d 09 42 6f |ctive wi|ndow..Bo|
|000010e0| 6f 6c 65 61 6e 09 09 09 | 66 49 6e 42 61 63 6b 67 |olean...|fInBackg|
|000010f0| 72 6f 75 6e 64 3b 09 09 | 09 2f 2f 20 74 72 75 65 |round;..|.// true|
|00001100| 20 69 66 20 6f 75 72 20 | 61 70 70 20 69 73 20 73 | if our |app is s|
|00001110| 75 73 70 65 6e 64 65 64 | 0d 09 42 6f 6f 6c 65 61 |uspended|..Boolea|
|00001120| 6e 09 09 09 66 57 61 6e | 74 46 72 6f 6e 74 43 6c |n...fWan|tFrontCl|
|00001130| 69 63 6b 73 3b 09 09 2f | 2f 20 74 72 75 65 20 69 |icks;../|/ true i|
|00001140| 66 20 77 65 20 77 61 6e | 74 20 66 72 6f 6e 74 20 |f we wan|t front |
|00001150| 63 6c 69 63 6b 73 0d 09 | 52 67 6e 48 61 6e 64 6c |clicks..|RgnHandl|
|00001160| 65 09 09 66 4d 6f 75 73 | 65 52 67 6e 3b 09 09 09 |e..fMous|eRgn;...|
|00001170| 09 2f 2f 20 6d 6f 75 73 | 65 20 6d 6f 76 65 64 20 |.// mous|e moved |
|00001180| 72 65 67 69 6f 6e 20 28 | 73 65 74 20 69 74 20 69 |region (|set it i|
|00001190| 6e 20 79 6f 75 72 20 44 | 6f 49 64 6c 65 29 0d 09 |n your D|oIdle)..|
|000011a0| 71 64 52 65 63 2a 09 09 | 09 66 71 64 3b 09 09 09 |qdRec*..|.fqd;...|
|000011b0| 09 09 2f 2f 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |..// poi|nter to |
|000011c0| 6f 75 72 20 71 64 20 67 | 6c 6f 62 61 6c 73 0d 7d |our qd g|lobals.}|
|000011d0| 3b 0d 0d 23 65 6e 64 69 | 66 0d 00 00 00 00 00 00 |;..#endi|f.......|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001210| 74 52 65 63 74 2e 72 69 | 67 68 74 20 2d 3d 20 31 |tRect.ri|ght -= 1|
|00001220| 35 3b 09 09 09 2f 2f 20 | 73 63 72 6f 6c 6c 20 62 |5;...// |scroll b|
|00001230| 0d 41 70 70 6c 69 63 61 | 74 69 6f 6e 2e 68 02 00 |.Applica|tion.h..|
|00001240| 00 00 54 45 58 54 4d 50 | 53 20 01 00 ff ff ff ff |..TEXTMP|S ......|
|00001250| 00 00 54 45 58 54 4d 50 | 53 20 01 00 ff ff ff ff |..TEXTMP|S ......|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 a8 0c 0b 40 00 00 | 11 5a 00 00 01 ac 6f 6e |.....@..|.Z....on|
|00001280| 53 70 61 63 65 3b 09 2f | 2f 20 62 75 74 74 6f 6e |Space;./|/ button|
|00001290| 20 73 70 61 63 65 0d 09 | 52 65 63 74 20 64 61 74 | space..|Rect dat|
|000012a0| 61 42 6f 75 6e 64 73 20 | 3d 20 7b 30 2c 30 2c 30 |aBounds |= {0,0,0|
|000012b0| 2c 31 7d 3b 09 09 2f 2f | 20 65 6d 70 74 79 20 31 |,1};..//| empty 1|
|000012c0| 20 63 6f 6c 75 6d 6e 20 | 6c 69 73 74 0d 09 50 6f | column |list..Po|
|000012d0| 69 6e 74 20 63 53 69 7a | 65 20 3d 20 7b 30 2c 30 |int cSiz|e = {0,0|
|000012e0| 7d 3b 09 09 09 09 2f 2f | 20 6c 65 74 20 6c 69 73 |};....//| let lis|
|000012f0| 74 20 6d 61 6e 61 67 65 | 72 20 64 65 63 69 64 65 |t manage|r decide|
|00001300| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 63 65 0d |...H..Mo|naco.ce.|
|00001310| 0d 09 43 6f 70 79 72 69 | 67 68 74 3a 09 a9 20 31 |..Copyri|ght:.. 1|
|00001320| 39 39 31 2d 31 39 00 06 | 00 04 00 31 00 5a 01 d2 |991-19..|...1.Z..|
|00001330| 02 73 00 31 00 5a 01 d2 | 02 73 a9 d4 22 d3 00 00 |.s.1.Z..|.s.."...|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00001350| 00 31 00 5a 01 d2 02 73 | 00 31 00 5a 01 d2 02 73 |.1.Z...s|.1.Z...s|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 df |.....n..|.n...>..|
|00001380| 57 f0 23 42 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |W.#B....|.>..MPSR|
|00001390| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 03 f0 ff ff 00 00 00 4c | 00 e1 b0 b4 00 00 00 00 |.......L|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+